package com.ly.mp.cmc.common.reponse;

import lombok.Data;

import java.io.Serializable;

/**
 * @Author: ly-songpengfei
 * @Date: 2025/8/3 15:53
 * @Description: 基础结果类
 * @Version: 1.0
 */
@Data
public class BaseResult implements Serializable {

    // 结果编码
    private String code;
    // 提示信息
    private String msg;

    public BaseResult() {
        this.code = ResultEnum.SUCCESS.getCode();
        this.msg = ResultEnum.SUCCESS.getMsg();
    }

    public BaseResult(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BaseResult(String msg) {
        this.msg = msg;
    }

}
